<%--
退费项列表页面
@author <a href="mailto:chenfenghai@ceopen.cn">chenfenghai</a>
action ：cashieringAction
method ：initRefundList
created ：2010-10-26
--%>
<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonList.jsp"%>
<%@ include file="/commons/commonEdit.jsp"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<script language="JavaScript" src="${ctx}/scripts/common/prototype.js"></script>
<script type="text/javascript" src="${ctx}/scripts/common.js"></script>
<script type="text/javascript" src="${ctx}/scripts/ajaxException.js"></script>
<script>
function init(){
	parent.setCredit("${credit }");
	parent.setTotalRows("${totalRows }");
}
var tempId= null;
//设置退费ID
function setRefundId(id){
	parent.setSelectRefundId(id);
	tempId = id;
}
//删除退费记录
function deleteRecord(){
	var url="${ctx}/charge_cashieringAction.do?method=deleteRefundItem&keyword="+tempId;
	new Ajax.Request(
           url,{method: 'post', parameters:{}, onComplete: showResponseDelete}
        );
}
//删除返回后处理
function showResponseDelete(transport){
	ajaxSubmitException(transport.responseText);
	if(transport.responseText=="false"){
		FailureAlert('${key.doFalse}');
	}else{
		parent.reloadRefunds();
	}
}
</script>
</head>
<body onload="init();">
<div style="overflow: auto; height: 300px;"><ec:ceTable
	items="refundItemList"
	action="${ctx}/charge_cashieringAction.do?method=initRefundList"
	var="refundItemVO" view="pmsNoPageView" styleClass="gridData2"
	rowsDisplayed="${totalRows }">
	<ec:ceRow styleClass="grid"
		onclick="setRefundId('${refundItemVO.keyword}')"
		onContextMenu="return ShowContextMenu(event,'quick_rightmenu')">
		<ec:ceColumn headerCell="pmsHeadrCell" title="房号" property="houseNumber"
			width="16%" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="项目名称" property="itemName"
			width="30%" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="本金" property="baseFee"
			width="17%" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="滞纳金" property="lateFee"
			width="17%" />
		<ec:ceColumn headerCell="pmsHeadrCell" title="合计" property="totalFee"
			width="20%" />
	</ec:ceRow>
</ec:ceTable></div>
<div id="quick_rightmenu" class="quick_menu2" style="display: none;">
<table width="100%" border="0" cellpadding="1" cellspacing="0"
	class="grid_quickMenu_bg" onMouseOver="showmy2menu('quick_rightmenu')"
	onMouseOut="hidden2menu('quick_rightmenu')">
	<tr>
		<td>
		<table width="100%" border="0" cellpadding="2" cellspacing="0">
			<tr>
				<td class="quickMenu_toolbarico"><a href="javascript:void(0)"
					onClick="parent.openAddRefund();" onFocus="this.blur()"><img
					src="${ctx}/images/ico_newfile.gif" border="0" align="absbottom"
					alt="新增" />&nbsp;新 增</a></td>
			</tr>
			<tr>
				<td class="quickMenu_toolbarico"><a href="#"
					onClick="parent.showDelete();return false;" onFocus="this.blur()"><img
					src="${ctx}/images/ico_delete.gif" alt="删除" " border="0"
					align="absbottom" />&nbsp;删 除</a></td>
			</tr>
		</table>
		</td>
	</tr>
</table>
</div>
</body>
</html>